package com.gzc.just.play.last.war.balanceserver;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Import;
import com.gzc.just.play.last.war.balanceserver.handler.*;

/**
 * Balance Server搴旂敤鍚鍔ㄧ被锛堥噸鏋勭増锛
 * 浣跨敤铏氭嫙绾跨▼澶勭悊妗嗘灦
 */
@SpringBootApplication
@Import({
    ServerStatusHandler.class,
    LoadBalanceHandler.class,
    ServerListHandler.class,
    HealthCheckHandler.class,
    BalanceNettyServer.class
})
public class BalanceServerApplication {
    private static final Logger log = LoggerFactory.getLogger(BalanceServerApplication.class);

    public static void main(String[] args) {
        log.info("Starting BalanceServer Application with Virtual Thread Framework...");
        SpringApplication.run(BalanceServerApplication.class, args);
        log.info("BalanceServer Application started successfully with Virtual Thread Framework");
    }
}